package com.inspur.edp.bef.engine.entity.exception;

import io.iec.edp.caf.commons.exception.CAFRuntimeException;
import io.iec.edp.caf.commons.exception.ExceptionLevel;

public class BefEngineExceptionBase extends CAFRuntimeException {
    private static String serviceUnitCode = "pfcommon";

    public BefEngineExceptionBase(String resourceFile, String exceptionCode, String[] messageParams, Exception innerException) {
        super(serviceUnitCode, resourceFile, exceptionCode, messageParams, innerException);
    }

    public BefEngineExceptionBase(String resourceFile, String exceptionCode, String[] messageParams, Exception innerException, ExceptionLevel level) {
        super(serviceUnitCode, resourceFile, exceptionCode, messageParams, innerException, level);
    }

    public BefEngineExceptionBase(String resourceFile, String exceptionCode, String[] messageParams, Exception innerException, ExceptionLevel level, boolean bizException) {
        super(serviceUnitCode, resourceFile, exceptionCode, messageParams, innerException, level, bizException);
    }

    public BefEngineExceptionBase(String exceptionCode, String message, Exception innerException) {
        super(serviceUnitCode, exceptionCode, message, innerException);
    }

    public BefEngineExceptionBase(String exceptionCode, String message, Exception innerException, ExceptionLevel level) {
        super(serviceUnitCode, exceptionCode, message, innerException, level);
    }

    public BefEngineExceptionBase(String exceptionCode, String message, Exception innerException, ExceptionLevel level, boolean bizException) {
        super(serviceUnitCode, exceptionCode, message, innerException, level, bizException);
    }

    public BefEngineExceptionBase(){
        super(serviceUnitCode,"CEFRuntime001","",null,ExceptionLevel.Error);
    }
    public BefEngineExceptionBase(String message){
        super(serviceUnitCode,"BEFEngine001",message,null,ExceptionLevel.Error);
    }

    public BefEngineExceptionBase(Exception e,String message){
        super(serviceUnitCode, "BEFEngine001",message,e,ExceptionLevel.Error);
    }
}
